package cn.livingCloud.repository;

import cn.livingCloud.dto.Page;
import cn.livingCloud.entity.core.Dept;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeptMapper {
    int deleteByPrimaryKey(String uuid);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(String uuid);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);

    List<Dept> getList(Page listDto);

    List<Dept> findListChildDept(@Param("parent_uuid") String parent_uuid);

    List<Dept> getAllList();
}